home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Games / ZAM / UtilCode / WindowUtil.c < prev   
Encoding:
Text File  |  2000-09-28  |  461 b   |  26 lines  |  [TEXT/KAHL]

  1.  
  2. void DrawClippedGrowIcon(WindowPtr theWindow)
  3. /*
  4.     Clip out the lines that appear
  5.     on the sides of a window with a grow icon.
  6. */
  7. {
  8.     Rect        clip;
  9.     RgnHandle    oldClip;
  10.     
  11.     oldClip = NewRgn();
  12.     if(!oldClip) {
  13.         /* WE ARE IN HELL */
  14.         DebugStr("\pHELL HAS BROKE LOOSE __ NEWRGN FDAILED");
  15.     }
  16.     GetClip(oldClip);
  17.     clip = theWindow->portRect;
  18.     clip.left = clip.right - 15;
  19.     clip.top = clip.bottom - 15;
  20.  
  21.     ClipRect(&clip);
  22.     
  23.     DrawGrowIcon(theWindow);
  24.     SetClip(oldClip);
  25. }
  26.